<?php
/**
 * 湖南电视台
 */
require_once 'Observer.php';
class HunanObserver extends Observer{
    private $humidity;
    public function update(SubjectInterface $subject)
    {
        $this->humidity = $subject->getHumidity();
        $this->display();
    }
    public function getDisplay()
    {
        return ['humity'=> $this->humidity];
    }
}